/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.devmng.entity.DeviceMain;
import com.thinkgem.jeesite.modules.devmng.vo.DeviceMainWithStatus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备DAO接口
 *
 * @author panda
 * @version 2017-12-02
 */
@MyBatisDao
public interface DeviceMainDao extends CrudDao<DeviceMain> {

    List<DeviceMain> findListIdBySysOffice(@Param("officeId") String officeId);

    List<DeviceMain> findListByTaskMainId(@Param("taskMainId") String taskMainId);

    List<DeviceMainWithStatus> findListWithStatusByTaskMainId(@Param("taskMainId") String taskMainId);

}